package day04.niming;

public class Nm02 {
    public static void main(String[] args) {

        Swimming(new Swimming() {
            @Override
            public void swim() {
                System.out.println("去游泳");
            }
        });
    }

    public static void Swimming(Swimming swimming) {
        swimming.swim();
    }
}

interface Swimming {
    void swim();
}

